// Copyright 2011 Edward Wahlen. All Rights Reserved.

package org.wahlen.pc;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

/**
 * @author edward.wahlen@gmail (Edward Wahlen)
 */
public interface Marshaller<T> {
  T read(DataInputStream dis) throws IOException;
  void write(T item, DataOutputStream dos) throws IOException;
}
